package com.ruoyi.dl.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 订单对象 dl_orders
 * 
 * @author ruoyi
 * @date 2020-12-28
 */
public class DlOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 发单id */
   // @Excel(name = "发单id")
    private Integer ordersGoodsId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String ordersNumber;

    /** 接单人id */
   // @Excel(name = "接单人id")
    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    public Integer getRemainingTime() {
        return remainingTime;
    }

    public void setRemainingTime(Integer remainingTime) {
        this.remainingTime = remainingTime;
    }

    @Excel(name = "剩余时间")
    private Integer remainingTime;

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }



    private DlOrdersGoods dlOrdersGoods;
    private DlUser dlUser;
    private DlUserGame userGame;
    private DlRecreation recreation;

    public DlUserGame getUserGame() {
        return userGame;
    }

    public void setUserGame(DlUserGame userGame) {
        this.userGame = userGame;
    }

    public DlRecreation getRecreation() {
        return recreation;
    }

    public void setRecreation(DlRecreation recreation) {
        this.recreation = recreation;
    }

    public DlOrdersGoods getDlOrdersGoods() {
        return dlOrdersGoods;
    }

    public DlUser getDlUser() {
        return dlUser;
    }

    public void setDlUser(DlUser dlUser) {
        this.dlUser = dlUser;
    }

    public void setDlOrdersGoods(DlOrdersGoods dlOrdersGoods) {
        this.dlOrdersGoods = dlOrdersGoods;
    }

    /** 订单状态（0：未完成，1：订单异常，2：完成） */
    @Excel(name = "订单状态", readConverterExp = "0=：未完成，1：订单异常，2：完成")
    private Integer ordersType;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setOrdersGoodsId(Integer ordersGoodsId) 
    {
        this.ordersGoodsId = ordersGoodsId;
    }

    public Integer getOrdersGoodsId() 
    {
        return ordersGoodsId;
    }
    public void setOrdersNumber(String ordersNumber) 
    {
        this.ordersNumber = ordersNumber;
    }

    public String getOrdersNumber() 
    {
        return ordersNumber;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setOrdersType(Integer ordersType) 
    {
        this.ordersType = ordersType;
    }

    public Integer getOrdersType() 
    {
        return ordersType;
    }

    @Override
    public String toString() {
        return "DlOrders{" +
                "id=" + id +
                ", ordersGoodsId=" + ordersGoodsId +
                ", ordersNumber='" + ordersNumber + '\'' +
                ", userId=" + userId +
                ", finishTime=" + finishTime +
                ", remainingTime=" + remainingTime +
                ", dlOrdersGoods=" + dlOrdersGoods +
                ", dlUser=" + dlUser +
                ", userGame=" + userGame +
                ", recreation=" + recreation +
                ", ordersType=" + ordersType +
                '}';
    }
}
